<?php
/* @var $this PartyController */
/* @var $model Party */
/* @var $form CActiveForm */
?>

<div class="search" style="height:70px">

<?php $form=$this->beginWidget('CActiveForm', array(
	'action'=>Yii::app()->createUrl($this->route),
	'method'=>'get',
)); ?>

	<?php echo $form->label($model,'crowd_id'); ?>
	<?php echo $form->dropDownList($model,'crowd_id',CHtml::listData(Crowd::model()->findAll(), 'id', 'title'),
                        array('empty'=>'-全部-')); ?> 

	<?php echo $form->label($model,'username'); ?>
	<?php echo $form->textField($model,'username',array('size'=>5,'maxlength'=>5,'class'=>'input')); ?>

	<?php echo $form->label($model,'phone'); ?>
	<?php echo $form->textField($model,'phone',array('size'=>11,'maxlength'=>11,'class'=>'input')); ?>
        
        <?php echo $form->label($model,'age'); ?>
        <input size="5" maxlength="5" class="input" name="Party_age_1" id="age_1" type="text">
        -
        <input size="5" maxlength="5" class="input" name="Party_age_2" id="age_2" type="text">
      
        <?php echo $form->label($model,'province'); ?>
        <?php echo $form->textField($model,'province',array('size'=>15,'maxlength'=>20,'class'=>'input')); ?>
    
        <?php echo $form->label($model,'city'); ?>
        <?php echo $form->textField($model,'city',array('size'=>15,'maxlength'=>20,'class'=>'input')); ?>
    
        <?php echo $form->label($model,'area'); ?>
        <?php echo $form->textField($model,'area',array('size'=>15,'maxlength'=>20,'class'=>'input')); ?>
    
      
         </br></br> 
        <label for="Party_is_recommend">是否有推荐人</label>                        
        <select name="is_recommend">
            <option value>全部</option>
            <option value="1">是</option>
            <option value="2">否</option>
        </select>    
        
	<?php echo $form->label($model,'recommend'); ?>
	<?php echo $form->textField($model,'recommend',array('size'=>20,'maxlength'=>20,'class'=>'input')); ?>
        
        <?php echo $form->label($model,'is_from'); ?>
	<?php echo $form->dropDownList($model,'is_from',array('0'=>'未来','1'=>'已来','3'=>'已取消'),
                                array('empty'=>'-全部-')); ?> 


	<?php echo CHtml::submitButton('查 询',array('class'=>'but')); ?>

<?php $this->endWidget(); ?>

</div><!-- search-form -->